package com.gree.rpc.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.gree.rpc.entity.Goods;
import com.gree.rpc.mapper.GoodsMapper;
import com.gree.rpc.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Service(interfaceClass = GoodsService.class,timeout = 120000)
@Component
public class GoodsServiceImpl implements GoodsService{

    @Autowired
    private GoodsMapper goodsMapper;

    /**
     * 获取所有商品信息
     * @return
     */
    @Override
    public List<Goods> getAllGoodsInfo() {
        return goodsMapper.getAllGoodsInfo();
    }
}
